import request from '../utils/request'

// 任务录入接口
export const taskPostApi = async (payload) => {
  return request.post('/fly', payload)
}

// 任务录入接口
export const taskPostmanyApi = async (payload) => {
  return request.post('/fly/many', payload)
}

// 任务列表接口
export const taskListApi = async (payload) => {
  return request.get('/fly', payload)
}

// 任务列表数据更新
export const taskUpdateApi = (id,editdata)=>{
  return request.put('/fly',editdata,{
      params:{
          id, 
      }
  })
}

// 任务列表删除
export const taskDeleteApi = async (id) => {
  return request.delete('/fly',{
      params:{id}
  })
}